function setToken (token) {
  localStorage.setItem('token', token);
}

function getToken () {
  return localStorage.getItem('token');
}

function clearToken () {
  localStorage.removeItem('token');
}

export default { getToken, setToken, clearToken }